package com.mt.course.api.service;

import java.util.List;
import java.util.Map;

import com.mt.common.PagerInfo;
import com.mt.common.ServiceResult;
import com.mt.course.entity.ExaminationEntity;

/**
 * 管理员数据接
 * 
 * @author raysonfang
 */
public interface IExaminationService {
    /**
     * 查询详情
     * 
     * @param params
     * @return
     */
    ServiceResult<ExaminationEntity> findInfo(Map<String, Object> params);

    /**
     * 查询列表
     * 
     * @param params
     * @return
     */
    ServiceResult<List<ExaminationEntity>> findList(Map<String, Object> params, PagerInfo<?> pagerInfo);

    ServiceResult<Integer> findCount(Map<String, Object> params);

    /**
     * 创建
     * 
     * @param examinationEntity
     * @return
     */
    ServiceResult<Integer> doInsert(ExaminationEntity examinationEntity);

    /**
     * 编辑
     * 
     * @param examinationEntity
     * @return
     */
    ServiceResult<Integer> doUpdate(ExaminationEntity examinationEntity);

    /**
     * 删除
     * 
     * @param userId
     * @return
     */
    ServiceResult<Integer> doDeleteById(Integer examinationId);

    /**
     * 查询一个课程的试题数量
     * @param params
     * @return
     */

    ServiceResult<Integer> sumOneCourseQuestionCount(Map<String, Object> params);
}
